Skip to content

Disable the field alignment lint check#4560

Merged
andrewsykim merged 5 commits intoray-project:masterfrom
jinbum-kim:chore/disable-fieldalignment-lint
Mar 11, 2026
Merged

Disable the field alignment lint check#4560
andrewsykim merged 5 commits intoray-project:masterfrom
jinbum-kim:chore/disable-fieldalignment-lint

Conversation

@jinbum-kim
Copy link
Contributor

Why are these changes needed?

This PR is related to #4557.

This PR disables the govet fieldalignment analyzer in golangci-lint configuration to reduce lint noise and avoid forcing struct field reordering for readability reasons.

As a follow-up to disabling it, the golangci-lint pre-commit hook updated a couple of files by removing now-unnecessary //nolint:govet annotations.

Related issue number

closes #4557

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

// +kubebuilder:resource:categories=all
// +kubebuilder:storageversion
//
//nolint:govet // RayCronJob is the Schema for the raycronjobs API
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the original comment // RayCronJob is the Schema for the raycronjobs API

Copy link
Contributor Author

@jinbum-kim jinbum-kim Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restore in here

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

//nolint:govet // RayCronJobSpec defines the desired state of RayCronJob
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep original comment // RayCronJobSpec defines the desired state of RayCronJob

Copy link
Contributor Author

@jinbum-kim jinbum-kim Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restore in here

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@jinbum-kim jinbum-kim force-pushed the chore/disable-fieldalignment-lint branch from addf402 to a927077 Compare March 5, 2026 01:21
@jinbum-kim
Copy link
Contributor Author

Hi @andrewsykim,
After reviewing the CI failure logs, it seems that restoring the original RayCronJob / RayCronJobSpec comments from //nolint:govet // ... to plain doc comments also affects generated artifacts.

I reproduced this locally and confirmed that running make api-docs and the codegen scripts(/hack/update-codegen.sh / hack/verify-codegen.sh) updates docs/reference/api.md and the applyconfiguration files accordingly.

Would it be okay if I add a follow-up commit with those regenerated files?

@andrewsykim
Copy link
Member

Yes I think it's fine to leave the //nolint:govet comment for now then

@jinbum-kim
Copy link
Contributor Author

Regarding the //nolint:govet comment, because removing fieldalignment makes it an unused directive, the pre-commit hook automatically remove it. So, even if I bypass the local hook to restore it, the CI check will likely fail.

Please let me know how you'd like to proceed, and I'll update accordingly! (regenerated files in this or other issue, etc.)

@andrewsykim
Copy link
Member

Please remove //nolint:govet and regenerate everything. Let's review the changes and decide next steps

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
@jinbum-kim jinbum-kim force-pushed the chore/disable-fieldalignment-lint branch from a927077 to 0163020 Compare March 10, 2026 01:57
@jinbum-kim
Copy link
Contributor Author

Could someone please trigger the git actions test? thanks!

@andrewsykim
Copy link
Member

triggered

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
@jinbum-kim
Copy link
Contributor Author

I'm sorry but I missed the previous comment about regenerating everything, so I initially pushed a commit with only the source changes. I’ve now added a follow-up commit with the regenerated artifacts.

Could you please re-run the git actions checks?

@andrewsykim andrewsykim merged commit 6729e75 into ray-project:master Mar 11, 2026
31 checks passed
@jinbum-kim jinbum-kim deleted the chore/disable-fieldalignment-lint branch March 12, 2026 01:24
hango880623 pushed a commit to hango880623/kuberay that referenced this pull request Mar 13, 2026
* chore: disable govet fieldalignment lint

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: remove redundant //nolint:govet comments

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: restore RayCronJobSpec/RayCronJob comments

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: restore RayCronJob comment

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: regenerate artifacts for RayCronJob comment changes

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

---------

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
rueian added a commit that referenced this pull request Mar 19, 2026
* Disable RayMultiHostIndexing feature for TestReconcile_Multihost_Replicas (#4583)

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* Disable the field alignment lint check (#4560)

* chore: disable govet fieldalignment lint

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: remove redundant //nolint:govet comments

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: restore RayCronJobSpec/RayCronJob comments

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: restore RayCronJob comment

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* chore: regenerate artifacts for RayCronJob comment changes

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

---------

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>

* Mark RC releases as pre-release in GoReleaser (#4590)

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* Add example YAML for manually enabling Ray k8s auth (#4582)

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

* [RayService] Rollback Support for Incremental Upgrades (#4109)

* Implement rollback support

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Fix unit test file

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Ensure upgrade in progress status is cleared

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Clarify rollback scenarios and clear pending apps during rollback

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Fix typo

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Add guard for rollback to prepare new cluster

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* fix e2e test checking pending cluster name

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Fix rollback calculation

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Fix httproute name in test

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Increase timeout for checking RayCluster deletion

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Fix rollback check and change httproute equal check so it doesn't always evaluate false

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Adjust logic to use timestamp of growing cluster

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Fix naming of vars

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

---------

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <113500783+ryanaoleary@users.noreply.github.com>

* [RayService] Promote Incremental Upgrade Feature to Beta (#4599)

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

* Revert "[RayService] Promote Incremental Upgrade Feature to Beta (#4599)" (#4602)

This reverts commit 0c8aab9.

* [Github Action] Skip krew-index update for pre-release tags (#4587)

* [CI] Skip krew-index update for pre-release tags

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

---------

Signed-off-by: Future-Outlier <eric901201@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* [Helm] update ray-cluster chart to apiVersion: v2 (#4593)

* Update kind configs and docs to v1.29.0 (#4595)

* Remove ingress template support for k8s < 1.19 (#4591)

* [Helm] Update ray-cluster default resource values (#4588)

* update kuberay 1.6.0 helm chart and readme

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* [Helm] Fix apiserver README chart version and align ray-cluster resource defaults

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* fix ctl test

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

---------

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* fix lint

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* chore: Use RayCluster name as SA name for RBAC auth (#4611)

Signed-off-by: JiangJiaWei1103 <waynechuang97@gmail.com>

* Add Google Artifact Registry image build/push guide (#4618)

* [History Server] Fix API response format to match Ray Dashboard frontend schema (#4615)

* [History Server] Fix API response format to match Ray Dashboard frontend schema

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* fix bug 1

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* add comments to explain frontend fields naming issue

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* fix tests

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* Add comments

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* update

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* Add frontend reference for this PR

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* fix codex and cursor bug

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* upadte

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* add actor.LabelSelector

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* better query for additional endpoints, request URI (path + query)

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* Add comments

Signed-off-by: Future-Outlier <eric901201@gmail.com>

---------

Signed-off-by: Future-Outlier <eric901201@gmail.com>

---------

Signed-off-by: Future-Outlier <eric901201@gmail.com>
Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <113500783+ryanaoleary@users.noreply.github.com>
Signed-off-by: JiangJiaWei1103 <waynechuang97@gmail.com>
Co-authored-by: Han-Ju Chen (Future-Outlier) <eric901201@gmail.com>
Co-authored-by: Jinbum Kim <jinbum9958@gmail.com>
Co-authored-by: Andrew Sy Kim <andrewsy@google.com>
Co-authored-by: Ryan O'Leary <113500783+ryanaoleary@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Matt Boersma <Matt.Boersma@microsoft.com>
Co-authored-by: Jia-Wei Jiang <36886416+JiangJiaWei1103@users.noreply.github.com>
Co-authored-by: Chia-Yi Liang <aaronliang@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider disabling field alignment lint check

2 participants